# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=dbus-broker
pkgver=34
pkgrel=0
pkgdesc="Linux D-Bus Message Broker"
url="https://github.com/bus1/dbus-broker"
arch="all"
license="Apache-2.0"
makedepends="meson linux-headers py3-docutils"
subpackages="$pkgname-doc"
source="https://github.com/bus1/dbus-broker/releases/download/v$pkgver/dbus-broker-$pkgver.tar.xz"

build() {
	# launcher: requires systemd
	abuild-meson . build -Dlauncher=false -Ddocs=true
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
0f29294773e34d6d4df4c3cc9123830faa6292ac7332b802e9c8443c30d884915894bbbce12e28cd694d6d0da6c1a6e35392dd17dbbf4003431ef2dcd47c2606  dbus-broker-34.tar.xz
"
